home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dicecache / dicecache_protos.h < prev    next >
C/C++ Source or Header  |  1997-09-09  |  984b  |  45 lines

  1.  
  2. /*
  3.  *  CLIB/DICECACHE_PROTOS.H
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  */
  9.  
  10. #ifndef CLIB_DICECACHE_PROTOS_H
  11. #define CLIB_DICECACHE_PROTOS_H 1
  12.  
  13. /*
  14.  *  If DiceCacheOpen() returns NULL, *psize contains:
  15.  */
  16.  
  17. #define PS_CACHE_DISABLED   0    /*  disabled or not read-only    */
  18. #define PS_NO_MATCH        1
  19. #define PS_LOCK_FAILED        2
  20. #define PS_GENERAL_FAILURE  9
  21.  
  22. /*
  23.  *
  24.  */
  25.  
  26. #ifndef _DICECACHE_INTERNAL_SKIP
  27.  
  28. typedef void *CacheNode;
  29.  
  30. CacheNode *DiceCacheOpen(const char *, const char *, long *);
  31. void DiceCacheClose(CacheNode *);
  32. void *DiceCacheSeek(CacheNode *, long, long *);
  33. long DiceCacheGetSuffixes(char *, long);
  34. long DiceCacheAddSuffix(const char *);
  35. long DiceCacheRemSuffix(const char *);
  36. void DiceCacheFlush(long);
  37. void DiceCacheSet(long *, long);
  38. void DiceCacheGet(long *, long);
  39. void DiceCacheEnable(void);
  40. void DiceCacheDisable(void);
  41.  
  42. #endif
  43. #endif
  44.  
  45.